Skip to content

OAK-11560 do not delete already present segments#2143

Open
joerghoh wants to merge 2 commits intotrunkfrom
OAK-11560
Open

OAK-11560 do not delete already present segments#2143
joerghoh wants to merge 2 commits intotrunkfrom
OAK-11560

Conversation

@joerghoh
Copy link
Contributor

@joerghoh joerghoh commented Mar 6, 2025

In case multiple times the same segment is fetched (the readSegment calls are not guarding against this case), the Files.move() operation throws an exception (as the segment is already present), which then deletes the already existing segment.

(Also improve an INFO message, which without additional context can be quite misleading.)

@github-actions
Copy link

github-actions bot commented Mar 6, 2025

Commit-Check ✔️

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
5.3% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant